package com.hzhk.happyrent.utils;

import android.os.Environment;

public class SdcardUtil {
    /**
     * 判断SD卡是否存在
     *
     * @return
     */
    public static boolean hasSdCord () {
        String state = Environment.getExternalStorageState();
        if (Environment.MEDIA_MOUNTED.equals(state)) {
            return true;
        }
        return false;
    }
}
